From fe648cbd81741608a664d42befd7561a67a23f1d Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Sat, 11 Apr 2020 20:40:34 -0500 Subject: [PATCH] [PATCH] wrap calls to clRetainKernel and clRetainEvent Gbp-Pq: Name 0001-wrap-calls-to-clRetainKernel-and-clRetainEvent.patch --- lib/CL/clEnqueueNDRangeKernel.c | 2 +- lib/CL/pocl_cq_profiling.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CL/clEnqueueNDRangeKernel.c b/lib/CL/clEnqueueNDRangeKernel.c index dc0204d..9d7514a 100644 --- a/lib/CL/clEnqueueNDRangeKernel.c +++ b/lib/CL/clEnqueueNDRangeKernel.c @@ -608,7 +608,7 @@ if (local_##c1 > 1 && local_##c1 <= local_##c2 && local_##c1 <= local_##c3 && \ if (pocl_cq_profiling_enabled) { pocl_cq_profiling_register_event (command_node->event); - clRetainKernel (kernel); + POname(clRetainKernel) (kernel); command_node->event->meta_data->kernel = kernel; } diff --git a/lib/CL/pocl_cq_profiling.c b/lib/CL/pocl_cq_profiling.c index 082d84e..77caeff 100644 --- a/lib/CL/pocl_cq_profiling.c +++ b/lib/CL/pocl_cq_profiling.c @@ -127,7 +127,7 @@ pocl_cq_profiling_init () void pocl_cq_profiling_register_event (cl_event event) { - clRetainEvent (event); + POname(clRetainEvent) (event); if (event->meta_data == NULL) event->meta_data = (pocl_event_md *)malloc (sizeof (pocl_event_md)); -- 2.30.2